package api.demo03;

/**
 * @author lwj
 * @date 2025-03-07
 * @vesion 1.0.0
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        // 第三：创建自定义线程对象
        MyThread myThread1 = new MyThread();

        System.out.println("线程状态："+myThread1.getState());

        // 第四：启动线程 - 调用线程对象的 run()
        myThread1.start();

        Thread.sleep(1);

        System.out.println("线程状态："+myThread1.getState());
        System.out.println("好好学习！");
    }
}
